package com.psm.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Record;

public class PuContentPic extends Model<PuContentPic>{

	public static String tableName="pu_content_pic";

    public static final PuContentPic me = new PuContentPic();
    
    public List<PuContentPic> getPics(int id){
    	
    	List<PuContentPic> plist = PuContentPic.me.find("select * from "+this.tableName+" where id="+id+" order by order asc");
    	return plist;
    }
    
}
